

# Source File Name
CFILES		=	./src/rand.c ./src/MonteCarloPi.c ./src/GaussLegendre.c ./src/rand_ks.c ./src/Borwein.c

# Main Source File
MAIN		=	./src/main.c

# Includes Directory
LIB			=	./lib

# Binary Output Directory
BIN			=	./bin/prog

# Zip File Name
ZIP			=	T1

# Documentation Files/Directory
DOC			=	./doc ./testrun.sh ./REAMDE.txt



all:
	@gcc -I$(LIB) -o $(BIN) $(MAIN) $(CFILES) -lm -pthread -lgmp

run:
	@./$(BIN)

runtime:	
	@/usr/bin/time -f "%e" $(BIN)

test:
	@./testrun.sh > results.txt

# Black Scholes
bs:
	@gcc src/BlackScholes.c src/rand.c -I$(LIB) -o $(BIN) -lm -pthread




zip:
	@zip -r $(ZIP) lib src $(DOC) Makefile
	@zip $(ZIP) bin

clear:
	@touch $(ZIP).zip
	@rm -r $(ZIP).zip bin -v
	@mkdir bin -v
	@touch .dummy~
	@find ./ -name *~ | xargs rm -v
